package com.olddriver.crm.web.controller;

import com.olddriver.crm.page.PageResult;
import com.olddriver.crm.query.PaidQueryObject;
import com.olddriver.crm.service.IPaidListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("paid")
public class PaidController {

    @Autowired
    private IPaidListService paidListService;

    @RequestMapping("list")
    public String paid() {

        return "payment/paid";
    }

    @ResponseBody
    @RequestMapping("query")
    public PageResult query(PaidQueryObject qo) {

        return paidListService.query(qo);
    }
}
